package cn.ctyun.xstore

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button

class MainActivity : AppCompatActivity() {

    lateinit var toLoadBucketBtn : Button

    lateinit var toUploadBucketBtn: Button

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        toLoadBucketBtn = findViewById(R.id.to_load_object_btn)
        toUploadBucketBtn = findViewById(R.id.to_upload_object_btn)
        toLoadBucketBtn.setOnClickListener {
            val intent = Intent(this, LoadObjectNamesActivity::class.java)
            startActivity((intent))
        }
        toUploadBucketBtn.setOnClickListener{
            val intent = Intent(this, UploadObjectActivity::class.java)
            startActivity(intent)
        }
    }
}